package org.bees.cms.core.furnish;

import javax.persistence.Column;
import javax.persistence.Entity;

import org.bees.cms.core.Describable;
import org.bees.cms.core.Domain;
import org.bees.cms.core.Named;

@Entity
public class Unit extends Domain implements Named, Describable {
	private static final long serialVersionUID = 3621609431522906212L;

	private String realm;
	private String name;
	private String description;

	@Column(length = 12, nullable = false)
	public String getRealm() {
		return realm;
	}

	public void setRealm(String realm) {
		this.realm = realm;
	}

	@Column(length = 24, nullable = false, unique = true)
	@Override
	public String getName() {
		return name;
	}

	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Column(length = 100)
	@Override
	public String getDescription() {
		return description;
	}

	@Override
	public void setDescription(String description) {
		this.description = description;
	}

}
